package com.chenxin.common.core.domain;

import lombok.Data;

import java.io.Serializable;

/**
 * RCS接口过程返回结果
 */
@Data
public class RcsResult implements Serializable {
    private static final long serialVersionUID = 1L;

    private String code = "0";
    private String message = "success";
    private String reqCode;
    private String data;

    public RcsResult success(String reqCode) {
        this.reqCode = reqCode;
        return this;
    }

    public RcsResult error(String reqCode, String message) {
        this.code = "500";
        this.message = message;
        this.reqCode = reqCode;
        return this;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getReqCode() {
        return reqCode;
    }

    public void setReqCode(String reqCode) {
        this.reqCode = reqCode;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
